package com.cms.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Record对象", description="")
public class Record implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "产物id")
    @TableField("goods_id")
    private Integer goodsId;

    @ApiModelProperty(value = "取货人/补货人id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "管理员id")
    @TableField("admin_id")
    private Integer adminId;

    @ApiModelProperty(value = "数量变动")
    private Integer count;

    @ApiModelProperty(value = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(value = "time", fill = FieldFill.INSERT)
    private LocalDateTime time;

    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    private String action;


}

